package com.kaifamiao.thread.d0926;

public class Demo07 {

    public static void main(String[] args) {
        MyThread myThread = new MyThread();

        Thread.State state = myThread.getState();

        System.out.println(state);

        myThread.start();

        try {
            myThread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(myThread.getState());
    }
}
